home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / contrib / poly3d-r / makefile.ami < prev    next >
Encoding:
Makefile  |  1996-07-16  |  2.6 KB  |  105 lines

  1.  
  2. #
  3. # Makefile for the POLY3D-R rendering program.
  4. #
  5.  
  6. #-----
  7. #
  8. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  9. # is sourced from several directories relative path specification will
  10. # be simple wrong.
  11. #
  12.  
  13. SRC_DIR = Work:T/Irit
  14. #
  15. # All libraries created will be installed into the LIB_DIR directory.
  16. #
  17. LIB_DIR = $(SRC_DIR)/lib
  18.  
  19. #
  20. # All includes files associated with the installed libraries will be
  21. # installed into the INC_DIR directory.
  22. #
  23. INC_DIR = $(SRC_DIR)/inc
  24.  
  25. #
  26. # All binaries created will be installed into the BIN_DIR directory.
  27. #
  28. BIN_DIR = $(SRC_DIR)/bin
  29.  
  30. #
  31. # Uncomment the correct set of variables to be used or modify it for
  32. # your system.
  33. #
  34. # -D flags:
  35. #
  36. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  37. #
  38. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  39. #    be used.
  40. #
  41. #  Emulation to the following function are available by defining the
  42. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  43. # -DGETCWD - if getcwd is not defined in this system.
  44. # -DSTRSTR - if strstr is not defined in this system.
  45. # -DSTRDUP - if strdup is not defined in this system.
  46. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  47. #
  48. # -DTIMES - if times is defined in your system, otherwise uses time.
  49. #
  50. # -DRAND - if the (s)rand random number generator exists.
  51. # -DRAND48 - ?rand48 random number generators exists.
  52. #    If non of RAND or RAND48 are defined, (s)random is used.
  53. #
  54. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  55. #
  56. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  57. #    varargs.h.
  58. #
  59. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  60. #
  61. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  62. #
  63. # Other, possibly useful defines (for c code development):
  64. #
  65. # -DDEBUG - for some debugging functions in the code (that can be invoked
  66. #        from a debugger).
  67. #
  68.  
  69. #
  70. # Flags for Amiga using gcc
  71. #
  72. CC = gcc
  73. DFLAGS = -Dmain=mymain -DTIMES
  74. CFLAGS = $(DFLAGS) -m68040 -m68881
  75. MORELIBS = $(LIB_DIR)/libamg.a
  76. GRAPDRVS = nuldrvs amidrvs
  77.  
  78. #
  79. # Default rule for compilation.
  80. #
  81. .c.o:
  82.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  83.  
  84. #
  85. # All libraries.
  86. LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc -lgif
  87. #-----
  88.  
  89. OBJS    = poly3d-r.o prepdata.o colortbl.o evalcolr.o scandata.o
  90.  
  91. poly3d-r:    $(OBJS)
  92.     $(CC) $(CFLAGS) -s -o poly3d-r $(OBJS) $(LIBS) -lm $(MORELIBS)
  93.  
  94. install: poly3d-r
  95.     Copy poly3d-r $(BIN_DIR)
  96.     Delete poly3d-r
  97.     Copy poly3d-r.cfg $(BIN_DIR)
  98.  
  99. # Dependencies starts here - do not touch, generated automatically.
  100. colortbl.o:    program.h
  101. evalcolr.o:    program.h
  102. poly3d-r.o:    program.h
  103. prepdata.o:    program.h
  104. scandata.o:    program.h
  105.